package com.nuaa.shopping.entity;

import java.io.Serializable;
/*
 * 订单明细
 */
public class Item implements Serializable {
	private Integer id; // 订单明细编号
	private Product product; // 商品
	private Integer num; // 数量
	private Double price; // 订单明细价格
	private Order order; // 订单明细所属订单

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	@Override
	public String toString() {
		return "Item [id=" + id + ", product=" + product + ", num=" + num
				+ ", price=" + price + ", order=" + order + "]";
	}

}
